package com.tboss.template.system.dao;

import org.apache.ibatis.session.SqlSession;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Repository;

import com.tboss.global.helpers.sqlSession.SqlSessionSupport;
import com.tboss.template.system.dto.SystemDto;

@Repository
public class SystemDao extends SqlSessionSupport {
	
	@Autowired
	public SystemDao(@Qualifier("sqlSession")SqlSession sqlSession){
		super(sqlSession);
	}
	
	@Override
	public String getNameSpace() {
		return "systemBase";
	}

	public SystemDto getSysBase(SystemDto dto){
		return super.queryForObject("getSysBase", dto);
	}
	
}
